Release 10.1A: OpenEdge Development:
Web Services


Creating server-side context for a ProcObject (running a persistent procedure)

To create the context for a ProcObject on the AppServer and run the persistent procedure:

  1. Create the ProcObject by invoking the CreatePO_CustomerOrder( ) method on the AppObject:
  2. ' There is no communication with the WSA at this time 
    Dim WS_custOrder As OrderService.CustomerOrderObj 
    WS_custOrder = New OrderService.CustomerOrderObj( ) 
    ' Run the persistent procedure CustomerOrder.p on the AppServer 
    WS_OrderService.CreatePO_CustomerOrder(custNum) 
    

    Note: OrderInfoIDValue is automatically inserted in the SOAP request header by the interface, and the AppObject CustomerOrderIDValue member variable is also filled in automatically by the interface.

  3. Copy the ProcObject ID from the AppObject to the ProcObject:
  4. ' Save the ProcObjectID in the ProcObject – copy from AppObject 
    WS_custOrder.CustomerOrderIDValue = 	
                     WS_OrderService.CustomerOrderIDValue 
    


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095